package com.ruoyi.mapper.jpjs.capital;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zeo
 * @explain 劳资数据录入
 * @date 2021/4/10 11:15
 */
public interface CapitalInputMapper {

    List<Map<String, Object>> selectAllPro(Map map);

    List<Map<String, Object>> selectDataDate(String proId);

    List<Map<String, Object>> selectData(String sql);

    List<Map<String, Object>> selectPositionByProjectId(String projectId);

    List<String> selectPosition(String project_id);

    String selectProjectIdByWorkId(String workId);

    String selectPositionIdByPositionName(@Param("positionName") String positionName, @Param("projectId") String projectId);



    int countCapitalData(Map map);
    int insertCapitalData(Map map);
    int updateCapitalData(Map map);


    Map selectCapitalDataById(String id);
    int proDataAdd(Map map);

    int deleteData(Map map);
    int deleteDataTemporary(Map map);
}

